package cn.source.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.source.common.annotation.Excel;
import cn.source.common.core.domain.BaseEntity;

/**
 * 用户积分对象 aa_user_integral_record
 * 
 * @author sourcebyte.vip
 * @date 2023-08-04
 */
public class AaUserIntegralRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    @Excel(name = "用户名称")
    private String userName;

    /** 积分 */
    @Excel(name = "积分")
    private BigDecimal integral;

    /** 类型 1 添加 2扣减 */
    @Excel(name = "类型 1 添加 2扣减")
    private Integer type;

    /** 描述，如系统添加，商品名称 */
    @Excel(name = "描述，如系统添加，商品名称")
    private String recordDesc;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setIntegral(BigDecimal integral)
    {
        this.integral = integral;
    }

    public BigDecimal getIntegral() 
    {
        return integral;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setRecordDesc(String recordDesc) 
    {
        this.recordDesc = recordDesc;
    }

    public String getRecordDesc() 
    {
        return recordDesc;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("integral", getIntegral())
            .append("type", getType())
            .append("recordDesc", getRecordDesc())
            .append("createDate", getCreateDate())
            .toString();
    }
}
